<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/financier.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewFactureTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewFactureLabel_nomFacture}"/>
                    <h:outputText value="#{factureController.selected.nomFacture}" title="#{bundle.ViewFactureTitle_nomFacture}"/>
                    <h:outputText value="#{bundle.ViewFactureLabel_idFacture}"/>
                    <h:outputText value="#{factureController.selected.idFacture}" title="#{bundle.ViewFactureTitle_idFacture}"/>
                    <h:outputText value="#{bundle.ViewFactureLabel_categorieFacture}"/>
                    <h:outputText value="#{factureController.selected.categorieFacture.nomCategorie}" title="#{bundle.ViewFactureTitle_categorieFacture}"/>
                    <h:outputText value="#{bundle.ViewFactureLabel_dateCreation}"/>
                    <h:outputText value="#{factureController.selected.dateCreation}" title="#{bundle.ViewFactureTitle_dateCreation}">
                        <f:convertDateTime pattern="dd/MM/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewFactureLabel_dateCloture}"/>
                    <h:outputText value="#{factureController.selected.dateCloture}" title="#{bundle.ViewFactureTitle_dateCloture}">
                        <f:convertDateTime pattern="dd/MM/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewFactureLabel_soldeHT}"/>
                    <h:outputText value="#{factureController.selected.soldeHT}" title="#{bundle.ViewFactureTitle_soldeHT}"/>
                    <h:outputText value="#{bundle.ViewFactureLabel_soldeTVA}"/>
                    <h:outputText value="#{factureController.selected.soldeTVA}" title="#{bundle.ViewFactureTitle_soldeTVA}"/>
                    <h:outputText value="#{bundle.ViewFactureLabel_paiementOk}"/>
                    <h:outputText value="#{factureController.selected.paiementOk}" title="#{bundle.ViewFactureTitle_paiementOk}"/>
                    <h:outputText value="#{bundle.ViewFactureLabel_soldePaye}"/>
                    <h:outputText value="#{factureController.selected.soldePaye}" title="#{bundle.ViewFactureTitle_soldePaye}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{factureController.destroyAndView}" value="#{bundle.ViewFactureDestroyLink}"/>
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewFactureEditLink}"/>
                <br />
                <br />
                <h:commandLink action="#{factureController.prepareCreate}" value="#{bundle.ViewFactureCreateLink}" />
                <br />
                <h:commandLink action="#{factureController.prepareList}" value="#{bundle.ViewFactureShowAllLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
